/*
 * @Author: moonwater 13812995013@163.com
 * @Date: 2025-03-07 10:16:26
 * @LastEditors: moonwater 13812995013@163.com
 * @LastEditTime: 2025-03-07 10:22:07
 * @FilePath: \盐师22Git仓库\day10\IActionTest.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day10;
//接口测试类
public class IActionTest {
    public static void main(String[] args) {
        //接口不能实例化对象
        // IAction iA = new IAction();
        //对象指向接口引用--实现类对象
        IAction iA = new Actionimpl();
        iA.start();
        iA.end();
        System.out.println(IAction.NUM);
        System.out.println(iA.NUM);
    }
}
